add_library(add SHARED add.cpp add.h)
# 为库添加编译选项
target_compile_options(add
  PRIVATE
  "-fPIC"
)